﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace ACGN.EFCore.Migrations
{
    public partial class init : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "Logins",
                keyColumn: "LId",
                keyValue: 1,
                column: "Avatar",
                value: "/AdminContext/images/touxiang.jpg");

            migrationBuilder.UpdateData(
                table: "Logins",
                keyColumn: "LId",
                keyValue: 2,
                column: "Avatar",
                value: "/AdminContext/images/touxiang.jpg");

            migrationBuilder.UpdateData(
                table: "ProPictures",
                keyColumn: "PPId",
                keyValue: 1,
                column: "PPName",
                value: "AdminContext/images/ProPictures/Pro1/pro1-shilaimu1.jpg");

            migrationBuilder.UpdateData(
                table: "ProPictures",
                keyColumn: "PPId",
                keyValue: 2,
                column: "PPName",
                value: "AdminContext/images/ProPictures/Pro1/pro1-shilaimu2.jpg");

            migrationBuilder.InsertData(
                table: "ProPictures",
                columns: new[] { "PPId", "PPName", "ProductId" },
                values: new object[] { 3, "AdminContext/images/ProPictures/Pro1/pro1-shilaimu3.jpg", 1 });

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 1,
                column: "CreateTime",
                value: new DateTime(2021, 10, 2, 11, 20, 50, 816, DateTimeKind.Local).AddTicks(8640));

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 2,
                column: "CreateTime",
                value: new DateTime(2021, 10, 2, 11, 20, 50, 823, DateTimeKind.Local).AddTicks(6716));

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 3,
                column: "CreateTime",
                value: new DateTime(2021, 10, 2, 11, 20, 50, 823, DateTimeKind.Local).AddTicks(6750));

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 4,
                column: "CreateTime",
                value: new DateTime(2021, 10, 2, 11, 20, 50, 823, DateTimeKind.Local).AddTicks(6754));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "ProPictures",
                keyColumn: "PPId",
                keyValue: 3);

            migrationBuilder.UpdateData(
                table: "Logins",
                keyColumn: "LId",
                keyValue: 1,
                column: "Avatar",
                value: "~/image/zs.jpg");

            migrationBuilder.UpdateData(
                table: "Logins",
                keyColumn: "LId",
                keyValue: 2,
                column: "Avatar",
                value: "~/image/zs.jpg");

            migrationBuilder.UpdateData(
                table: "ProPictures",
                keyColumn: "PPId",
                keyValue: 1,
                column: "PPName",
                value: "~/image/jl.jpg");

            migrationBuilder.UpdateData(
                table: "ProPictures",
                keyColumn: "PPId",
                keyValue: 2,
                column: "PPName",
                value: "~/image/jl.jpg");

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 1,
                column: "CreateTime",
                value: new DateTime(2021, 9, 29, 0, 43, 53, 689, DateTimeKind.Local).AddTicks(5736));

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 2,
                column: "CreateTime",
                value: new DateTime(2021, 9, 29, 0, 43, 53, 694, DateTimeKind.Local).AddTicks(756));

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 3,
                column: "CreateTime",
                value: new DateTime(2021, 9, 29, 0, 43, 53, 694, DateTimeKind.Local).AddTicks(787));

            migrationBuilder.UpdateData(
                table: "Products",
                keyColumn: "PId",
                keyValue: 4,
                column: "CreateTime",
                value: new DateTime(2021, 9, 29, 0, 43, 53, 694, DateTimeKind.Local).AddTicks(790));
        }
    }
}
